package designpattern.state;

/**
 * TODO:类描述
 *
 * @className: Client
 * @packageName: designpattern.state
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/21 21:07
 */
public class Client {
    public static void main(String[] args) {
        Room room = new Room();
        State state = new BookState();

        room.setState(state);

        room.unbook();
        room.currentState();
        room.checkin();
        room.currentState();
        room.checkin();
        room.currentState();
        room.checkout();
        room.currentState();
    }
}
